﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;
using System.IO;
namespace Com.CMS263.BLL
{
  public   class ProductTypeBLL
    {
      ProductTypeDAO ptd = new ProductTypeDAO();
      public void AddType(ProductType type) 
      {
         
          ptd.AddProductType(type);
      }
      public IList<ProductType> GetAllType()
      {
          return ptd.GetAllType();
      }
      public bool Modify(ProductType pt)
      {
          return ptd.Modify(pt);
      }
      public bool DeleteById(int id)
      {
          return ptd.DeleteById(id);
      }
      public ProductType GetTypeById(int id)
      {
          return ptd.GetTypeById(id);
      }
      public IList<ProductType> GetShowType(int num)
      {
          return ptd.GetShowType(num);
      }
      
    }
}
